﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="QnA.aspx.cs" Inherits="EXAM.QnA" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <h2 class="art-postheader">
        Information Exchange</h2>
    <table style="width: 100%;">
        <tr>
            <td style="font-family: arial; font-size: 15px;">
                Input to share your best practices, ideas and post questions.
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadTextBox ID="txtQuest" runat="server" Height="50px" Skin="Sunset" TextMode="MultiLine"
                    Width="500px">
                </telerik:RadTextBox>
                <telerik:RadButton ID="btnPost" runat="server" Skin="Sunset" Text="Send"
                    Width="100px" OnClick="btnPost_Click" Font-Names="Arial">
                </telerik:RadButton>
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
                <asp:HiddenField ID="hdOldMsg" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1"
                    Skin="Sunset">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="To You" PageViewID="pageQuestion" Selected="true">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Q&amp;A" PageViewID="pageAnswer">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" Height="400px"
                    ScrollBars="Auto" BorderStyle="Solid" BorderWidth="1px" SelectedIndex="0">
                    <telerik:RadPageView ID="pageQuestion" runat="server" Width="100%" Selected="true">
                        <asp:DataList ID="dlQuest" runat="server" Width="100%">
                            <ItemTemplate>
                                <div>
                                    <%#Eval("Question") %></div>
                                <div>
                                    <%#Eval("Question") %></div>
                            </ItemTemplate>
                        </asp:DataList>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="pageAnswer" runat="server" Width="100%">
                        <asp:DataList ID="dlAnswer" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
                            CellPadding="2" ForeColor="Black" Width="100%" BorderWidth="1px">
                            <FooterStyle BackColor="Tan" />
                            <ItemTemplate>
                                <p>
                                    Q :
                                    <%#Eval("Question") %></p>
                                <p>
                                    A :
                                    <%#Eval("Answer") %></p>
                                <br />
                            </ItemTemplate>
                            <AlternatingItemStyle BackColor="PaleGoldenrod" />
                            <SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                            <HeaderStyle BackColor="Tan" Font-Bold="True" />
                        </asp:DataList>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </td>
        </tr>
    </table>
</asp:Content>
